package danran.other;

import java.util.*;
import java.util.stream.Collectors;

/**
 * @Classname Huawei2016
 * @Description TODO
 * @Date 2021/9/1 14:41
 * @Created by ASUS
 */
public class Huawei2016 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Set<Integer> set = new HashSet<>();
        List<Integer> array = new ArrayList<>();
        int n;
        while (scanner.hasNext()) {
            n = Integer.parseInt(scanner.nextLine());
            if (!set.contains(n)) {
                set.add(n);
                array.add(n);
            }
        }
        Collections.sort(array);
        for (Integer integer : array) {
            System.out.println(integer);
        }
    }


}
